package cn.zj.note.view;

import cn.zj.note.todo.TodoManager;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class RecordStage extends Stage {
    private TextArea textArea = new TextArea();
    public RecordStage(String title) {
        this.setTitle(title);
        textArea.setPrefHeight(400);
        textArea.setWrapText(true);
        VBox root = new VBox(textArea);
        Scene scene = new Scene(root, 800, 400);
        this.setScene(scene);
    }

    public void setContent(String content){
        textArea.setText(content);
    }
}
